package com.siashan.toolkit.oss.qcloud;

import com.siashan.toolkit.oss.core.OssStorageService;
import com.siashan.toolkit.oss.qcloud.core.QCloudOssStorageService;

/**
 * 腾讯云OSS工厂类
 *
 * @author siashan
 * @since v1.0.1
 **/
public class QCloudOssFactoryProvider {
    private QcloudOssProperties qcloudOssProperties;


    public QCloudOssFactoryProvider(QcloudOssProperties qcloudOssProperties) {
        this.qcloudOssProperties = qcloudOssProperties;
    }


    /**
     * 获取存储服务类
     *
     * @return 腾讯云OSS存储服务类
     */
    public OssStorageService getStoreageService() {
        return new QCloudOssStorageService(qcloudOssProperties.getConfig());
    }

}
